#pragma once
#include<iostream>
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<string>
#include <fcntl.h>

using namespace std;
const string PipeFile="./PipeFile";
const mode_t pri=0600;
const int defaultfd=-1;
const int Size=1024;
class Init{
    public:
Init(){
    umask(0);
    int n=mkfifo(PipeFile.c_str(),pri);
    if(n<0)
    {
        cerr<<"mkfifo Error"<<endl;
        return;
    }
   
}
 ~Init(){
    int n=unlink(PipeFile.c_str());
       if(n<0)
    {
        cerr<<"unlink Error"<<endl;
        return;
    }
    cout<<"unlink success"<<endl;
 }
}init;